#pragma once

#include <cstring>

#include "./rados.h"

namespace ceph_mock {
using namespace std;

namespace ceph {
  namespace buffer {
    using list = std::string;
  }
} /* namespace ceph::buffer::list */

struct OSDOp {
    ceph_osd_op op;
    uint32_t rval = 0;
    ceph::buffer::list indata;
    ceph::buffer::list outdata;

    OSDOp()
    {
        memset(&op, 0, sizeof(ceph_osd_op));
    }

    OSDOp(const int op_code)
    {
        memset(&op, 0, sizeof(ceph_osd_op));
        op.op = op_code;
    }
};  /* struct OSDOp */
}   /* namespace ceph_mock */
